<!--  -->
<template>
<div class='food-nav-box'>
    <div class="row-box row1">
        <NavItem>
            <template #item-img>
                <img src="./img/1.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/2.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/3.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/4.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/5.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/6.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 
    </div>

    <div class="row-box row2">
        <NavItem>
            <template #item-img>
                <img src="./img/7.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/8.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/9.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/10.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/11.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 

        <NavItem>
            <template #item-img>
                <img src="./img/12.jpg" alt="图标">    
            </template>    
            <template #item-content>hhg</template>    
        </NavItem> 
    </div>
   

   

  

</div>
</template>

<script>
import NavItem from './nav-item/NavItem'

export default {
//import引入的组件需要注入到对象中才能使用
components: {
    NavItem
},
data() {
//这里存放数据
return {

};
},
//监听属性 类似于data概念
computed: {},
//监控data中的数据变化
watch: {},
//方法集合
methods: {

},
//生命周期 - 创建完成（可以访问当前this实例）
created() {

},
//生命周期 - 挂载完成（可以访问DOM元素）
mounted() {

},
beforeCreate() {}, //生命周期 - 创建之前
beforeMount() {}, //生命周期 - 挂载之前
beforeUpdate() {}, //生命周期 - 更新之前
updated() {}, //生命周期 - 更新之后
beforeDestroy() {}, //生命周期 - 销毁之前
destroyed() {}, //生命周期 - 销毁完成
activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
}
</script>
<style scoped lang="less">

    .food-nav-box{
        // position: absolute;
        height: 180px;
        width: 100%;
        background-color: white;
        margin-bottom: 10px;
        background: url('../img/msite_back.svg');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;

        .row-box{
            display: flex;
            justify-content: space-evenly;
        }

        img{
            width: 50px;
            height: 50px;
        }
    }

</style>